import request from '@/utils/request'

// 查询医生列表
export function listInfoDoctor(query) {
  return request({
    url: '/index/infoDoctor/list',
    method: 'get',
    params: query
  })
}

// 查询医生详细
export function getInfoDoctor(id) {
  return request({
    url: '/index/infoDoctor/' + id,
    method: 'get'
  })
}

// 新增医生
export function addInfoDoctor(data) {
  return request({
    url: '/index/infoDoctor',
    method: 'post',
    data: data
  })
}

// 修改医生
export function updateInfoDoctor(data) {
  return request({
    url: '/index/infoDoctor',
    method: 'put',
    data: data
  })
}

// 删除医生
export function delInfoDoctor(id) {
  return request({
    url: '/index/infoDoctor/' + id,
    method: 'delete'
  })
}
